package com.wd.mymine.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.wd.live.base.BaseActivity
import com.wd.mymine.R
import com.wd.mymine.databinding.ActivityMyWalletBinding
import com.wd.mymine.viewmodel.MyViewModel

class MyWalletActivity :BaseActivity<MyViewModel,ActivityMyWalletBinding>(R.layout.activity_my_wallet){

    var timeList=ArrayList<Int>()
    //时间名称列表
    var bottomList=ArrayList<String>()
    override fun dataObserver() {

        bottomList.add("第1周")
        bottomList.add("第2周")
        bottomList.add("第3周")
        bottomList.add("第4周")
        bottomList.add("第5周")
        bottomList.add("第6周")
        bottomList.add("第7周")
        timeList.add(60)
        timeList.add(80)
        timeList.add(90)
        timeList.add(70)
        timeList.add(60)
        timeList.add(100)
        timeList.add(80)

        //==============================给自定义布局添加数据
        binding.tongWallet.updateTime(timeList,bottomList)
        binding.tongWallet.dp2px(2F)
        binding.tongWallet.dp2px(this,2F)
        binding.tongWallet.getMaxTime(timeList)

    }

    override fun initViews() {

    }

}